<?php
/**
 * security.php
 * @fileoverview 安全检查
 * @author Lynk Li
 */
/**
 * @class Security 安全检查类
 * @constructor
 * @author Lynk Li
 */
class Security {
	/**
	 * 安全检查
	 */
	function check() {
		global $GLOBAL,$COMMON;
		$OP_ID = intval($_SESSION["OP_ID"]);
		if ($OP_ID == 0){
			header("location: error.php");
		}else{
			$GLOBAL["OP_ID"] 	= $_SESSION["OP_ID"];
			$GLOBAL["OP_USER"] 	= $_SESSION["OP_USER"];
			$GLOBAL["OP_NAME"]	= $_SESSION["OP_NAME"];
			$GLOBAL["OP_TYPE"] 	= $_SESSION["OP_TYPE"];
		}
	}
}
?>